const Router = require('koa-router')

const labelRouter = new Router({prefix: '/label'})

const { verifyAuth } = require('../middlewares/auth.middleware')

const {
  create,
  list
} = require('../controllers/label.controller')

// 创建标签
labelRouter.post('/', verifyAuth, create)
// 获取标签列表
labelRouter.get('/', list)

module.exports = labelRouter